#ifndef _HCC_ERROR_CODE_MID_NVRAM_H_
#define _HCC_ERROR_CODE_MID_NVRAM_H_

#include "ofc/ofc_types.h"
#include "hcc/hcc_error_code.h"
#include "hcc/hcc_error_code_mid.h"

#ifdef __cplusplus
extern "C" {
#endif

#define HCC_MAKE_MID_NVRAM_ERROR(error_code) (int)HCC_ERROR(HCC_MAKE_MID_WARE_ERROR(kHccMidWareNvRam, error_code, HCC_ERROR_LEVEL_ERROR))


/**
 * NvRam:
 */
typedef Int32 THccMidNvRamErrorCodeEnum;

#define kHccMidNvRamSuccess	HCC_ERROR_SUCCESS	///< 成功,没有错误
#define kHccMidNvRamFailure	HCC_MAKE_MID_NVRAM_ERROR(1)	///<失败
#define kHccMidNvRamUnknown	HCC_MAKE_MID_NVRAM_ERROR(2)	///<未知错误
#define kHccMidNvRamVersion	HCC_MAKE_MID_NVRAM_ERROR(3)	///<版本太低
#define kHccMidNvRamNotExist	HCC_MAKE_MID_NVRAM_ERROR(4)	///<不存在(如: 句柄不存在)
#define kHccMidNvRamIsExisted	HCC_MAKE_MID_NVRAM_ERROR(5)	///<已存在
#define kHccMidNvRamIsIllegal	HCC_MAKE_MID_NVRAM_ERROR(6)	///<不合法(如: 参数不合法)
#define kHccMidNvRamSizeError	HCC_MAKE_MID_NVRAM_ERROR(7)	///<尺寸错误(如: 尺寸不够)
#define kHccMidNvRamAttrInvalid	HCC_MAKE_MID_NVRAM_ERROR(8)	///<属性无效
#define kHccMidNvRamAccessIllegal	HCC_MAKE_MID_NVRAM_ERROR(9)	///<存取非法

#ifdef __cplusplus
}  // extern "C"
#endif

#endif // _HCC_ERROR_CODE_MID_NVRAM_H_
/**
 * @
 */
